package com.kcyu.sfherp.config;

import org.springframework.security.crypto.password.PasswordEncoder;

public class MypasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence rawPassword) {
        return (String) rawPassword;
    }

    @Override
    public boolean matches(CharSequence rawPassword, String encodedPassword) {
        String strPass = (String) rawPassword;
        if(strPass.equals(encodedPassword)){
            return true;
        } else {
            return false;
        }
    }
}
